<template>
  <div>
    <div class="nav">
      <div class="one">
        <van-row>
          <van-col span="6">
            <router-link to="/ActivityHome">
              <div class="list">
                <img src="https://gw.alicdn.com/tfs/TB1wYhnOhTpK1RjSZFMXXbG_VXa-90-90.png" alt>
                <p>活动</p>
              </div>
            </router-link>
          </van-col>
          <van-col span="6">
            <router-link :to="{path:'/CommunityHome', query:{nameLink:'articleAdd'}}">
              <div class="list">
                <img src="https://gw.alicdn.com/tfs/TB1vUVkOb2pK1RjSZFsXXaNlXXa-90-90.png" alt>
                <p>论坛</p>
              </div>
            </router-link>
          </van-col>
          <van-col span="6">
            <router-link to="/SurveyHome">
              <div class="list">
                <img src="https://gw.alicdn.com/tfs/TB1.D4dOmrqK1RjSZK9XXXyypXa-90-90.png" alt>
                <p>问卷</p>
              </div>
            </router-link>
          </van-col>
          <van-col span="6">
            <router-link to="/VoteHome">
              <div class="list">
                <img src="https://gw.alicdn.com/tfs/TB1J74qOgHqK1RjSZFEXXcGMXXa-90-90.png" alt>
                <p>投票</p>
              </div>
            </router-link>
          </van-col>
        </van-row>
      </div>
      <div class="one" style="margin-top:0.7rem;">
        <van-row>
          <van-col span="6">
            <router-link to="/LuckyDraw">
              <div class="list">
                <img src="https://gw.alicdn.com/tfs/TB1BxMON9zqK1RjSZPcXXbTepXa-90-90.png" alt>
                <p>抽奖</p>
              </div>
            </router-link>
          </van-col>
          <van-col span="6">
            <router-link :to="{path:'/proposalHome', query:{nameLink:'proposalAdd'}}">
              <div class="list">
                <img src="https://gw.alicdn.com/tfs/TB1yhpiObPpK1RjSZFFXXa5PpXa-90-90.png" alt>
                <p>优化建议</p>
              </div>
            </router-link>
          </van-col>
          <van-col span="6">
            <router-link to="/OrganizationHome">
              <div class="list">
                <img src="https://gw.alicdn.com/tfs/TB1wNFnOXYqK1RjSZLeXXbXppXa-90-90.png" alt>
                <p>工会</p>
              </div>
            </router-link>
          </van-col>
          <van-col span="6">
            <router-link :to="{path:'/NewsHome', query:{content_type:1}}">
                <div class="list">
                <img src="https://gw.alicdn.com/tfs/TB1Eg0kOlLoK1RjSZFuXXXn0XXa-90-90.png" alt>
                <p>新闻</p>
                </div>
            </router-link>
          </van-col>
        </van-row>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "NavItem",
  data() {
    return {};
  },
  methods: {
    openUrl() {
      this.$ddapi.openLink(
        "https://landray.dingtalkapps.com/alid/app/report/home.html?dd_web_timestamp=1544694764369&showmenu=false&dd_progress=false&dd_share=false&corpid=dingc8f854e9cbec00f035c2f4657eb6378f&spm=a2o5v.12302328"
      );
    }
  }
};
</script>

<style lang="scss" scoped>
@import "nav";
</style>
